package uy.com.tsi2G7.superbet.user.dao;

import java.rmi.RemoteException;
import java.util.List;

import javax.ejb.Local;

import uy.com.tsi2G7.superbet.user.City;
import uy.com.tsi2G7.superbet.user.Country;
import uy.com.tsi2G7.superbet.user.File;
import uy.com.tsi2G7.superbet.user.User;


@Local
public interface UserStore {
	public void storeUser(User user)throws RemoteException, UserStoreException;
	public void storeImage(String userId,File image)throws RemoteException,ImageStoreException;
	public void updateUser(User user)throws RemoteException, UserStoreException;
	public User getUser(String userId)throws RemoteException, UserNotFoundException;
	public File getImage(String userId)throws RemoteException, ImageStoreException;
	public List<Country> getCountries()throws RemoteException, UserStoreException;
	public List<City> getCities(String country)throws RemoteException, UserStoreException;
}
